package com.atguigu.gulimall.product.fign;

import com.atguigu.common.to.SkuReduction;
import com.atguigu.common.to.SpuBoundTo;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author gorkr
 * @date 2022/08/27 15:19
 **/
@FeignClient("gulimall-coupon")
public interface CouponFeignService {

   // 只要json模型是兼容的 无需同一个to
   @PostMapping("/coupon/spubounds/save")
   void saveSpuBounds(@RequestBody SpuBoundTo spuBoundTo);

   @PostMapping("/")
   R saveSkuRedution(@RequestBody SkuReduction skuReduction);
}
    